package com.koala.learn.paramslearn;

import com.alibaba.fastjson.JSON;
import com.koala.utils.OrikaUtil;
import org.junit.jupiter.api.Test;

import java.time.LocalDateTime;

/**
 * @author yantingrui
 * @date 2021/12/8   11:21
 */
public class Start {

    public static void main(String[] args) {
        ConditionFather conditionFather = new ConditionFather(LocalDateTime.now(), LocalDateTime.now());
        // 删除海康积分
        Params params = new Params();
        System.out.println(params.objectToString());

    }

    /**
     *
     */
    @Test
    public void test21() {
        //SuperPage myPage = new SuperPage();
        //String s = JSON.toJSONString(myPage);
        //System.out.println("s: " + s);
        SuperPage cf = JSON.parseObject("{\"msg\":\"科学之美\",\"offset\":12,\"pageNumber\":1,\"pageSize\":12,\"paged\":true,\"sort\":{\"empty\":false,\"sorted\":true,\"unsorted\":false},\"unpaged\":false}", SuperPage.class);
        System.out.println("c: " + JSON.toJSONString(cf));
    }

    /**
     * 类和类型的区别
     */
    @Test
    public void test2() {
        System.out.println(Integer.class);
        System.out.println(OrikaUtil.getType(Integer.class));
        Class<Integer> integerClass = Integer.class;

    }


}
